

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
	添加购销轮换计划
</title><meta http-equiv="Pragma" content="no-cache" /><meta http-equiv="Cache-Control" content="no-cache" /><meta http-equiv="Expires" content="0" /><link href="css/MainStyle.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/WdatePicker.js" type="text/javascript"></script>
    
    <link href="css/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" />
    
    <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
    <script src="js/autoComplete.js" type="text/javascript"></script>
    <style type="text/css">
        .ui-button
        {
            margin-left: 0px;
        }
        .ui-button-icon-only .ui-button-text
        {
            padding: 0.15em;
        }
        .ui-autocomplete-input
        {
            margin: 0;
            padding: 0.18em 0 0.18em 0.18em;
            font-size: 12px;
        }
        .Company
        {
            width: 220px;
        }
        .Store
        {
            width:60px;    
        }
        .Granary
        {
            width: 230px;
        }
        li
        {
            height: 18px;
        }
    </style>
    <script type="text/javascript">
        function checkInput() {
            var ApprovalNO = $('#form_txtApprovalNO');
            var Granary = $('#form_ddlGranary');
            var num = $('#form_txtNum');
            var Rotation = $('#form_ddlRotation');
            var ApprovalTime = $('#form_txtApprovalTime');
            var CloseTime = $('#form_txtCloseTime');

            if (ApprovalNO.val() == "") {
                alert("请输入批文编号！");
                ApprovalNO.focus();
                return false;
            }
            if (Granary.val() == "") {
                alert("请选择库点！");
                Granary.focus();
                return false;
            }
            if (num.val() == "") {
                alert("请输入总数量！");
                num.focus();
                return false;
            }
            if (Rotation.val() == "") {
                alert("请选择轮换方式！");
                Rotation.focus();
                return false;
            }
            if (ApprovalTime.val() == "") {
                alert("请选择审批时间！");
                ApprovalTime.focus();
                return false;
            }
            if (CloseTime.val() == "") {
                alert("请选择截止时间！");
                CloseTime.focus();
                return false;
            }

            return true;
        }
        $(document).ready(function () {
            //加载AutoComplete全部数据
            Loding("DC0000000356957", "光山县同富粮食贸易有限责任公司库点", "YHLX0105", "");

            //查询提示
            $(".Query").click(function () {
                var ApprovalNO = $('#form_txtApprovalNO');
                var num = $('#form_txtNum');
                var Rotation = $('#form_ddlRotation');
                var ApprovalTime = $('#form_txtApprovalTime');
                var CloseTime = $('#form_txtCloseTime');

                if (ApprovalNO.val() == "") {
                    alert("请输入批文编号！");
                    ApprovalNO.focus();
                    return false;
                }
                if ($("#hdStore1").val() == "") {
                    alert('请选择仓房！');
                    return false;
                }
                if (num.val() == "") {
                    alert("请输入总数量！");
                    num.focus();
                    return false;
                }
                if (Rotation.val() == "") {
                    alert("请选择轮换方式！");
                    Rotation.focus();
                    return false;
                }
                if (ApprovalTime.val() == "") {
                    alert("请选择审批时间！");
                    ApprovalTime.focus();
                    return false;
                }
                if (CloseTime.val() == "") {
                    alert("请选择截止时间！");
                    CloseTime.focus();
                    return false;
                }
            })
            $("#ddlRotationInOut").change(function () {
                var selected = $(this).children("option:selected");
                if (selected.val() == "轮入") {
                    $("#ckbNoInPlan").attr("disabled","disabled");
                }
                else {
                    $("#ckbNoInPlan").removeAttr("disabled");
                }
            });
        })
        //根据仓号获取ZhuanKaPinZhong
        function Get_ZhuanKaPinZhong(s_storeID) {
            $.ajax({
                type: "get",
                url: "../../Data/AutoComplete.ashx",
                data: "Function=GetStoreStr&storeID=" + s_storeID + "&" + new Date(),
                success: function (stName) {
                    document.getElementById("txtZkPZ").value = stName;
                }
            });
        }
        //仓号选中后
        $(document).ready(function () {
            document.getElementById("hdStore1").onpropertychange = function (e) {
                var s_storeID = $("#hdStore1").val();
                if (s_storeID != '') {
                    Get_ZhuanKaPinZhong(s_storeID);
                } else {
                    document.getElementById("txtZkPZ").value = '';
                }
            }
        })
    </script>
</head>
<body>
    <form name="form1" method="post" action="RotationPlan_Add.aspx" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE1MTMzMTI2NTUPZBYCAgMPZBYEAgUPZBYCZg9kFgYCAw8QZGQWAGQCBw8QZGQWAGQCCw8QZGQWAGQCHQ8QDxYGHg1EYXRhVGV4dEZpZWxkBQdrZXlOYW1lHg5EYXRhVmFsdWVGaWVsZAUHa2V5Q29kZR4LXyFEYXRhQm91bmRnZBAVBg4tLeivt+mAieaLqS0tIAzlhYjotK3lkI7plIAM5YWI6ZSA5ZCO6LStDOi+uei0rei+uemUgAzovrnplIDovrnotK0G5YW25a6DFQYABkxIRlMwMQZMRkZTMDIGTEZGUzAzBkxGRlMwNAZMRkZTMDUUKwMGZ2dnZ2dnZGRkLyE5312Lgu3tLnQkF0vrOh1xt+0Hjrp6ybDSn6yf/rg=" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="css/WebResource.axd?d=zHDbwQNBZkRzBNw2y9i1xg2&amp;t=635694614495804448" type="text/javascript"></script>


<script src="css/ScriptResource.axd?d=2-U7prMC6qCzWBWmoATkVPRCphLz80qe0iL8druuXGlXVr0BXQbHc9Qw6r2YAC4zSa1KFXTc7eSvrMa-_PM1QrIDP4a2DXGuKrn2AWZqc4A1&amp;t=16ab2387" type="text/javascript"></script>
<script src="js/ScriptResource.axd?d=2-U7prMC6qCzWBWmoATkVPRCphLz80qe0iL8druuXGlXVr0BXQbHc9Qw6r2YAC4zTyvgvKd2n8rrVS-QvZ7VAlSVRDlnt35HOIPZVfpgGYo1&amp;t=16ab2387" type="text/javascript"></script>
<div>

	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWHALWwtCRCwKFleiTDAKjzu7EAQK+5ZrtBQLNwOnyCwKh/bTKBALzhaL/DgKk2/vQAwLbxK63CAKe3Y3gBQK1vaX5AgLurJOUBQK836qsDgKGot7dCQLc+amBBQLcypyNBAKJo83jAgLHsvjEAgLx8om3BwLx8sWiBwLx8rmiBwLx8r2iBwLx8rGiBwLDzKeFDgKPiJLXAQLDyfenCALPgducAQKMk4HYD+d5vSnh4oDY0IPMV2rTvbJRnc62zCI3ymoqj95qzTRa" />
</div>
    <script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ScriptManager1', 'form1', ['tUpdatePanel1',''], [], [], 90, '');
//]]>
</script>

    <table width="100%" border="0" class="noboder">
        <tr>
            <td colspan="2" class="tdthread">
                添加购销轮换计划
            </td>
        </tr>
        <tr>
            <td colspan="2" class="tbtitle" width="20%">
                <div style="float: left; padding-left: 5px;">
                    注:带[<font color="red">*</font>]部分为必填或必选项！</div>
            </td>
        </tr>
        <tr>
            <td class="tbtitle">
                [<font color="red">*</font>]&nbsp;批文编号：
            </td>
            <td class="tbright">
                &nbsp;<input name="form_txtApprovalNO" type="text" id="form_txtApprovalNO" />
            </td>
        </tr>
        <tr>
            <td class="tbtitle">
                [<font color="red">*</font>]&nbsp;库点：
            </td>

            <td class="tbright">
                <div id="UpdatePanel1">
    
                        &nbsp;<select name="ddl_Company_AutoComplete" id="ddl_Company_AutoComplete" mark="Company" class="Company_AutoComplete" style="display: none;">
    <option value="">Select one...</option><option value="SA0000000000035" title="zhongguochubeiliangguanlizonggongsihenanfengongsi">中国储备粮管理总公司河南分公司</option></select><input class="Company ui-autocomplete-input ui-widget ui-widget-content ui-corner-left" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"><button type="button" style="font-size: 12px; height: 24px;" tabindex="-1" title="显示全部信息！" class="ui-button ui-widget ui-state-default ui-button-icon-only ui-corner-right .ui-button-icon-only" role="button" aria-disabled="false"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"></span><span class="ui-button-text">&nbsp;</span></button>
                        
                        <select name="ddl_Granary_AutoComplete" id="ddl_Granary_AutoComplete" class="Granary_AutoComplete" mark="Granary" style="display:none">
    <option value="">Select one...</option><option value="DC0000000356957" title="guangshanxiantongfuliangshimaoyiyouxianzerengongsikudian">光山县同富粮食贸易有限责任公司库点</option></select><input class="Granary ui-autocomplete-input ui-widget ui-widget-content ui-corner-left" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"><button type="button" style="font-size: 12px; height: 24px;" tabindex="-1" title="显示全部信息！" class="ui-button ui-widget ui-state-default ui-button-icon-only ui-corner-right .ui-button-icon-only" role="button" aria-disabled="false"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"></span><span class="ui-button-text">&nbsp;</span></button>
                        
                        <select name="ddl_Store_AutoComplete1" id="ddl_Store_AutoComplete1" class="Store_AutoComplete" mark="Store" style="display:none">
    <option value="">Select one...</option><option value="356957100100" title="1号仓">1号仓</option><option value="356957100200" title="2号仓">2号仓</option><option value="356957100300" title="3号仓">3号仓</option><option value="356957100400" title="4号仓">4号仓</option><option value="356957100500" title="5号仓">5号仓</option><option value="356957100600" title="6号仓">6号仓</option><option value="356957100700" title="7号仓">7号仓</option><option value="356957100800" title="8号仓">8号仓</option><option value="356957100900" title="9号仓">9号仓</option><option value="356957101000" title="10号仓">10号仓</option><option value="356957101100" title="11号仓">11号仓</option><option value="356957101200" title="12号仓">12号仓</option><option value="356957101300" title="13号仓">13号仓</option><option value="356957101400" title="14号仓">14号仓</option><option value="356957101500" title="15号仓">15号仓</option><option value="356957101600" title="16号仓">16号仓</option></select><input class="Store ui-autocomplete-input ui-widget ui-widget-content ui-corner-left" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"><button type="button" style="font-size: 12px; height: 24px;" tabindex="-1" title="显示全部信息！" class="ui-button ui-widget ui-state-default ui-button-icon-only ui-corner-right .ui-button-icon-only" role="button" aria-disabled="false"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-s"></span><span class="ui-button-text">&nbsp;</span></button>
                        
                        <input name="txtZkPZ" type="text" id="txtZkPZ" style="width:50px;">
                    
</div>
                <input type="hidden" name="hdCompany" id="hdCompany" value="SA0000000000035">
                <input type="hidden" name="hdCompanyName" id="hdCompanyName" value="中国储备粮管理总公司河南分公司">
                <input type="hidden" name="hdGranary" id="hdGranary" value="DC0000000356957">
                <input type="hidden" name="hdGranaryName" id="hdGranaryName" value="光山县同富粮食贸易有限责任公司库点">                
                <input type="hidden" name="hdStore1" id="hdStore1">
                <input type="hidden" name="hdStoreName1" id="hdStoreName1">
                <input type="hidden" name="form_hdParentOrgCode" id="form_hdParentOrgCode">
                <input type="hidden" name="form_hdOrgCode" id="form_hdOrgCode">
                <input type="hidden" name="form_hdOrgName" id="form_hdOrgName">
            </td>



            <!-- <td class="tbright">
                <div id="UpdatePanel1">
	
                        &nbsp;<select name="ddl_Company_AutoComplete" id="ddl_Company_AutoComplete" mark="Company" class="Company_AutoComplete">
	</select>
                        
                        <select name="ddl_Granary_AutoComplete" id="ddl_Granary_AutoComplete" class="Granary_AutoComplete" mark="Granary" style="display:none">
	</select>
                        
                        <select name="ddl_Store_AutoComplete1" id="ddl_Store_AutoComplete1" class="Store_AutoComplete" mark="Store" style="display:none">
	</select>
                        
                        <input name="txtZkPZ" type="text" id="txtZkPZ" style="width:50px;" />
                    
</div>
                <input type="hidden" name="hdCompany" id="hdCompany" />
                <input type="hidden" name="hdCompanyName" id="hdCompanyName" />
                <input type="hidden" name="hdGranary" id="hdGranary" />
                <input type="hidden" name="hdGranaryName" id="hdGranaryName" />                
                <input type="hidden" name="hdStore1" id="hdStore1" />
                <input type="hidden" name="hdStoreName1" id="hdStoreName1" />
                <input type="hidden" name="form_hdParentOrgCode" id="form_hdParentOrgCode" />
                <input type="hidden" name="form_hdOrgCode" id="form_hdOrgCode" />
                <input type="hidden" name="form_hdOrgName" id="form_hdOrgName" />
            </td> -->
        </tr>
        <tr>
            <td class="tbtitle">
                [<font color="red">*</font>]&nbsp;总数量：
            </td>
            <td class="tbright">
                &nbsp;<input name="form_txtNum" type="text" id="form_txtNum" />
            </td>
        </tr>
        <tr>
            <td class="tbtitle">
                [<font color="red">*</font>]&nbsp;轮换数量：
            </td>
            <td class="tbright">
                &nbsp;<input name="txtPlanNum" type="text" id="txtPlanNum" />
            </td>
        </tr>
        <tr>
            <td class="tbtitle">
                [<font color="red">*</font>]&nbsp;轮换方式：
            </td>
            <td class="tbright">
                &nbsp;<select name="form_ddlRotation" id="form_ddlRotation">
	<option value="">--请选择-- </option>
	<option value="LHFS01">先购后销</option>
	<option value="LFFS02">先销后购</option>
	<option value="LFFS03">边购边销</option>
	<option value="LFFS04">边销边购</option>
	<option value="LFFS05">其它</option>

</select>
            </td>
        </tr>
        <tr>
            <td class="tbtitle">
                [<font color="red">*</font>]&nbsp;轮入轮出：
            </td>
            <td class="tbright">
                &nbsp;<select name="ddlRotationInOut" id="ddlRotationInOut">
	<option value="">请选择</option>
	<option value="轮出">轮出</option>
	<option value="轮入">轮入</option>
</select>
                <input name="ckbNoInPlan" type="checkbox" id="ckbNoInPlan" disabled="disabled" /><label>暂无轮入计划</label>
            </td>
        </tr>
        <tr>
            <td class="tbtitle">
                [<font color="red">*</font>]&nbsp;审批时间：
            </td>
            <td class="tbright">
                &nbsp;<input name="form_txtApprovalTime" type="text" id="form_txtApprovalTime" class="Wdate" onfocus="WdatePicker({skin:&#39;whyGreen&#39;,dateFmt:&#39;yyyy-MM-dd&#39;})" />
            </td>
        </tr>
        <tr>
            <td class="tbtitle">
                [<font color="red">*</font>]&nbsp;截止时间：
            </td>
            <td class="tbright">
                &nbsp;<input name="form_txtCloseTime" type="text" id="form_txtCloseTime" class="Wdate" onfocus="WdatePicker({skin:&#39;whyGreen&#39;,dateFmt:&#39;yyyy-MM-dd&#39;})" />
            </td>
        </tr>
        <tr>
            <td colspan="2" class="tdbtnNew" style="text-align: center">
                
                <input type="submit" name="btnAdd" value="添 加" id="btnAdd" class="anni1 Query" />
                
            </td>
        </tr>
        <tr class="noboder">
            <td colspan="2" class="noboder">
            </td>
        </tr>
    </table>
    </form>
</body>
</html>

